package com.qf.controller;

import com.qf.consts.Code;
import com.qf.pojo.R;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {


    @GetMapping("/findAll")
    @CrossOrigin
    public R findAll(){
        //需要当前登录的用户信息
        return R.success("查询全部成功 --").putCode(Code.SUCCESS);
    }
}
